package com.frank.stock4j.tusharepro.bean;

import com.frank.stock4j.tusharepro.BaseBean;
import com.frank.stock4j.tusharepro.http.BaseRequestParam;

/**
* 描述：获取同花顺板块指数。注：数据版权归属同花顺，如做商业用途，请主动联系同花顺，如需帮助请联系微信migedata 。
* @author: codesmith
**/
public interface ThsIndexBean extends BaseBean {
    String API_NAME = "ths_index";
    
    interface Fields {
    String ts_code = "ts_code";    //代码
    String name = "name";    //名称
    String count = "count";    //成分个数
    String exchange = "exchange";    //交易所
    String list_date = "list_date";    //上市日期
    String type = "type";    //N概念指数S特色指数
    }
    
    interface Params {
        ts_code ts_code = new ts_code();
        /*
        * 指数代码
        */
        class ts_code extends BaseRequestParam {
            { key = "ts_code"; }
        }
        exchange exchange = new exchange();
        /*
        * 市场类型A-a股 HK-港股 US-美股
        */
        class exchange extends BaseRequestParam {
            { key = "exchange"; }
        }
        type type = new type();
        /*
        * 指数类型 N-板块指数 S-同花顺特色指数
        */
        class type extends BaseRequestParam {
            { key = "type"; }
        }
    }
}